package org.xhy.hrm.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import org.xhy.hrm.doc.CourseDoc;
import org.xhy.hrm.util.AjaxResult;

@FeignClient(value = "HRM-SEARCH",fallbackFactory = CourseESFeignFallbackFactory.class)
@RequestMapping("/es/course")
public interface CourseESFeign {

    @PostMapping("/save")
    AjaxResult save(@RequestBody CourseDoc courseDoc);

    @DeleteMapping("/del/{id}")
    AjaxResult deleteById(@PathVariable("id") Long id);

}
